package cn.howxu.yichen_ovo.common.item;

import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @description: TODO
 * @author: HowXu
 * @date: 2025/9/14 14:21
 */
public class MegaCell extends Item {

    public MegaCell() {
        super(new Properties().rarity(Rarity.RARE));
    }
    

    @Override
    public void appendHoverText(ItemStack pStack, @Nullable Level pLevel, List<Component> pTooltipComponents, TooltipFlag pIsAdvanced) {
        super.appendHoverText(pStack, pLevel, pTooltipComponents, pIsAdvanced);
        pTooltipComponents.add(Component.translatable("tip.yichen_ovo.mega_cell").withStyle(ChatFormatting.GOLD));
        pTooltipComponents.add(Component.translatable("tip.yichen_ovo.crafting_only").withStyle(ChatFormatting.GREEN));
    }
}
